<%-- 
    Document   : newExercise
    Created on : 27-feb-2012, 19:50:23
    Author     : Tarde
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page language="java"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:form action="/NewExercise">
    <bean:message key="titulo.txt"/>
    <html:text property="titulo"/>
    <html:errors property="titulo"/>
    <br/>
    <bean:message key="descripcion.txt"/>
    <html:textarea property="descripcion"/>
        
    <html:errors property="descripcion"/>
    <br/>
    <bean:message key="tema.txt"/>
    <br/>
    <html:select property="tema">
        <logic:present name="temas" >
            <logic:iterate id="temaEjercicio" name="temas">
                <html:option value="${temaEjercicio.idtema}">${temaEjercicio.tema}</html:option>  
            </logic:iterate>
        </logic:present>                              
    </html:select>
    <br/>

    <html:submit><bean:message key="nuevoejercicio.sub"/></html:submit> 
    <html:errors property="result"/>

</html:form>

    